package cn.service;

import org.apache.log4j.Logger;

public class Greeting {
    private  static  final Logger log = Logger.getLogger(Greeting.class);
    // 说话的人
    private  String  person;

    //  说话的内容
    private  String words;

    public Greeting() {
    }

    public Greeting(String person, String words) {
        this.person = person;
        this.words = words;
    }
    public  void sayGreeting(){
        log.debug(person + "说:" + words + "");
        //System.out.println(person + "说:" + words + "");
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public void setWords(String words) {
        this.words = words;
    }
}
